package com.nus;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.ScrollingMovementMethod;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

public class IvleModuleAnnoucementDescriptionActivity extends Activity {
	protected TextView title;
	private String lv_Details_arr[];

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
		setContentView(R.layout.ivleannouncementsdescriptionlayout);
		 getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
		 title = (TextView) findViewById(R.id.titleheader);
		 title.setText("Announcement");
		 ImageView b = (ImageView)findViewById(R.id.home);
		  b.setImageDrawable(getResources().getDrawable(R.drawable.ivle));
		final TextView textView = (TextView) findViewById(R.id.announcement_title);
		if (!IvleModuleAnnouncementActivity.ANNOUNCEMENT_TITLE.equals(" "))
			textView.setText(IvleModuleAnnouncementActivity.ANNOUNCEMENT_TITLE);
		else
			textView.setText("-");

		final TextView textView1 = (TextView) findViewById(R.id.description);
		if (!IvleModuleAnnouncementActivity.ANNOUNCEMENT_DESCRIPTION
				.equals(" ")) {
			textView1
					.setText(Html
							.fromHtml(IvleModuleAnnouncementActivity.ANNOUNCEMENT_DESCRIPTION));
			textView1.setMovementMethod(ScrollingMovementMethod.getInstance());
		} else
			textView1.setText("-");

		final TextView textView2 = (TextView) findViewById(R.id.creator_name);
		if (!IvleModuleAnnouncementActivity.ANNOUNCEMENT_CREATORNAME
				.equals(" "))
			textView2
					.setText(IvleModuleAnnouncementActivity.ANNOUNCEMENT_CREATORNAME);
		else
			textView2.setText("-");

		final TextView textView3 = (TextView) findViewById(R.id.created_date);
		if (!IvleModuleAnnouncementActivity.ANNOUNCEMENT_DATE.equals(" "))
			textView3.setText(IvleModuleAnnouncementActivity.ANNOUNCEMENT_DATE);
		else
			textView3.setText("-");

	}

}
